Skip to content

HIVE-21778 CBO: "Struct is not null" gets evaluated as nullable always causing filter miss in the query#928

Closed
vineetgarg02 wants to merge 2 commits into
apache:masterfrom
vineetgarg02:HIVE-21778
Closed

HIVE-21778 CBO: "Struct is not null" gets evaluated as nullable always causing filter miss in the query#928
vineetgarg02 wants to merge 2 commits into
apache:masterfrom
vineetgarg02:HIVE-21778

Conversation

@vineetgarg02
Copy link
Copy Markdown
Contributor

No description provided.

demo_struct struct<f1:string, f2:string, f3:string>,
datestr string
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we insert a few rows here and add the SELECT query? Just in case that IS NOT NULL predicate in the explain goes away with a future change, we do not confuse it with an optimization.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unable to add a null value into struct column. cast as <struct> doesn't work. I have added a test to insert someone data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants